package com.itheima.abstract_template;

public class Tom extends Template {
    @Override
    public void body() {
        System.out.println("tom的作文正文内容");
    }
}

class Rose extends Template {

    @Override
    public void body() {
        System.out.println("rose的作文正文内容");
    }
}

class Test {
    public static void main(String[] args) {
        Tom tom = new Tom();
        tom.write();

        Rose rose = new Rose();
        rose.write();
    }
}
